/*
 * Copyright 2020-2025 the original author or authors.
 * You cannot use this file unless authorized by the author.
 */
package org.ipig.data.mongo;

import org.ipig.data.DbClientService;

/**
 * mongo client service
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $Id: MongoService.java 3 2020-01-21 09:36:33Z ts <comchnts@163.com> $
 * @since 1.0
 */
public interface MongoService<T, M> extends DbClientService {
    /**
     * 获取默认DB
     *
     * @return
     */
    public T getDatabase();

    /**
     * 获取指定DB
     *
     * @param databaseName
     * @return
     */
    public T getDatabase(String databaseName);

    /**
     * @return the conf
     */
    public M getConf();

    /**
     * @param conf the conf to set
     */
    public void setConf(M conf);
}
